#include <stdlib.h>
#include <stdio.h>
#include <string.h>

#include "crypto/types.h"
#include "crypto/json.h"
#include "crypto/parse/json/json.l.h"
#include "crypto/parse/json/json.y.h"
#include "crypto/parse/json/ParseJsonImp.h"

Json *ParseJson(char *jsonString)
{
    YY_BUFFER_STATE bp;
    Json *json;
    bp = yy_scan_string(jsonString);
    yy_switch_to_buffer(bp);
    yyparse(&json);
    return json;
}